﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace TierService
{
    public partial class frmMessageBox : TierService.frmTemplate
    {
        public String _Title;
        public String _OkButtonText;
        public String _CancelButtonText;
        public String _Message;

        public frmMessageBox()
        {
            InitializeComponent();
        }

        private void btnCancle_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void frmMessageBox_Load(object sender, EventArgs e)
        {
            labelControl1.Text = _Message;

            Text = _Title;
            btnOk.Text = _OkButtonText;
            btnCancle.Text = _CancelButtonText;
        }
    }
}